<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <input type="text" v-model="h" placeholder="请输入身高(单位:m)">
    <input type="text" v-model="w" placeholder="请输入体重(单位:kg)">
    <input type="button" @click="f()" value="开始计算">
    <h2>{{result}}</h2>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{

        },
        methods: {

        }
    })
</script>
</html>